package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-07-25
 * Time: 16:16
 */
public class Demo14 {
    public static void main(String[] args) throws InterruptedException {

        Object object = new Object();
        synchronized (object) {
            object.wait();
            object.notify();
        }
        System.out.println("end");

    }
}